<?php
class Attach extends Model {
	protected $validate = array(
		array('userid', 'require', '标题不能为空'),
		array('username', 'require', '内容不能为空'),
		array('originalname', 'require', '分类不能为空'),
		array('filepath', 'require', '分类不能为空'),
	);
	
	public function setTable() {
		$this->table = $this->db->getTable('attach');
	}
	
	public static function getTable() {
		return $this->db->getTable('attach');
	}
	
}